package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租售合同对象 zhwy_rentalcontract
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
public class ZhwyRentalcontract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自增 */
    @Excel(name = "主键，自增")
    private Long id;

    /** 商铺编号 -- 外键 */
    private Long shopsId;

    /** 类别 */
    @Excel(name = "类别")
    private Integer type;

    /** 租户id 外键 */
    private Long hirerId;

    /** 租金 */
    @Excel(name = "租金")
    private Integer rent;

    /** 行业 */
    @Excel(name = "行业")
    private String trade;

    /** 开始时间 */
    private Date startTime;

    /** 出租时长（月） */
    @Excel(name = "出租时长", readConverterExp = "月=")
    private Integer taxi;

    /** 结束时间 */
    private Date endTime;

    /** 合同状态【数据字典  生效中  撤销   逾期】 */
    @Excel(name = "合同状态【数据字典  生效中  撤销   逾期】")
    private Integer state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setShopsId(Long shopsId) 
    {
        this.shopsId = shopsId;
    }

    public Long getShopsId() 
    {
        return shopsId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setHirerId(Long hirerId) 
    {
        this.hirerId = hirerId;
    }

    public Long getHirerId() 
    {
        return hirerId;
    }
    public void setRent(Integer rent) 
    {
        this.rent = rent;
    }

    public Integer getRent() 
    {
        return rent;
    }
    public void setTrade(String trade) 
    {
        this.trade = trade;
    }

    public String getTrade() 
    {
        return trade;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setTaxi(Integer taxi) 
    {
        this.taxi = taxi;
    }

    public Integer getTaxi() 
    {
        return taxi;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopsId", getShopsId())
            .append("type", getType())
            .append("hirerId", getHirerId())
            .append("rent", getRent())
            .append("trade", getTrade())
            .append("remark", getRemark())
            .append("startTime", getStartTime())
            .append("taxi", getTaxi())
            .append("endTime", getEndTime())
            .append("state", getState())
            .toString();
    }
}
